package com.mtsmda.oracleOfficialTutorialJAVA7.chapter1;

public class PrimitiveDataTypes {

	public static void main(String[] args) {

		int binary = 0b10001010;
		int octal = 0752;
		int decimal = 10;
		int heximal = 0x15FE;
		System.out.println("binary = " + binary);
		System.out.println("octal = " + octal);
		System.out.println("decimal = " + decimal);
		System.out.println("heximal = " + heximal);
		System.out.println("_______________________");
		double e = 1.2358e10;
		System.out.println(e);
		System.out.println("_______________________");
		long creditCardNumber = 1234_5678_9012_3456L;
		float pi = 3.14_15F;
		long hexBytes = 0xFF_EC_DE_5E;
		long hexWords = 0xCAFE_BABE;
		long maxLong = 0x7fff_ffff_ffff_ffffL;
		long bytes = 0b010110100101010;
		System.out.println("creditCardNumber - " + creditCardNumber);
		System.out.println("pi - " + pi);
		System.out.println("hexBytes - " + hexBytes);
		System.out.println("hexWords - " + hexWords);
		System.out.println("maxLong - " + maxLong);
		System.out.println("bytes - " + bytes);
		System.out.println("_______________________");
		
		Integer i1 = 127;
		Integer i2 = 127;
		Integer i3 = new Integer(15);
		System.out.println(i1 == i2);
		System.out.println(i1 == i3);
		
		int a = 100;
		int b = 10;
		System.out.println(a+++b); //110
		
		int x = 0;
        int y = 0;
        for (int z = 0; z < 5; z++) {
            if ((++x > 2) || (++y > 2)) {
                x++;
            }
        }
        System.out.println(x + " " + y);
        
        int i;
        System.out.println("string");
        
        int ii = 0;
        boolean r = true;
        if (r) {
            ii = 0;
        }
        System.out.println(ii);
	}

}